package com.jjong.model;

import java.util.ArrayList;
import java.util.List;

import com.jjong.dto.BoardDto;
import com.jjong.dto.FrequestDto;
import com.jjong.dto.FriShowDto;
import com.jjong.dto.FriendDto;
import com.jjong.dto.MembersDto;
import com.jjong.dto.MessageDto;
import com.jjong.dto.OtherMemDto;
import com.jjong.dto.PhotosDto;
import com.jjong.dto.WriteBoardDto;

public interface IjjongBoard {
	//member
	public int checkEmail(String email);
	public int addMembers(MembersDto dto);
	public int addMembers2(MembersDto dto);
	public MembersDto loginMembers(MembersDto dto);
	int writeprofile(MembersDto dto);
	MembersDto getJjongUser(String email);
	int deleteUser(MembersDto dto);
	public ArrayList<MembersDto> memsearch(String name);
	public MembersDto findpasswd(String email);
	public OtherMemDto memfind(int memseq);
	
	//board
	public ArrayList<BoardDto> getAllBoards();
	public ArrayList<BoardDto> getUserBoards(String email);
	public ArrayList<BoardDto> noHideBoards(String email);
	public ArrayList<BoardDto> getUserBoardsPage(String email, int page);
	public ArrayList<BoardDto> getUserBoardspaging(String email, int page);
	int getCountUserBoard(String email);
	
	
	
	int writeBoard(WriteBoardDto dto);
	public BoardDto getBoard(int seq);
	int reply(WriteBoardDto dto);
	int reply2(WriteBoardDto dto);
	public int delBoard(int boardseq);
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	public ArrayList<BoardDto> getOurBoard(String email);
	public ArrayList<BoardDto> getOurBoardPage(String email, int page);
	//public ArrayList<BoardDto> noHideOurBoards(String email);
	public ArrayList<BoardDto> noHideOurBoards(String email ,int page);
	int getOurBoardsCount(String email);
	public int hideBoard(int bseq);
	
	
	//photo
	public int addFile(MembersDto mDto);
	public ArrayList<PhotosDto> getPhotoList(String email);
	public int sendPhoto(PhotosDto dto);
	public PhotosDto photoDetail(int imgseq);
	public int photoDel(int imgseq);
	public int imgWriteBoard(PhotosDto dto);
	public ArrayList<PhotosDto> getUserImgBoards(int parent);
	public PhotosDto getImgBoard(int imgseq);
	public int imgreply(PhotosDto dto);
	public int imgReplyDel(int imgseq);
	
	//friend
	public int reqCheck(FrequestDto fdto);
	public int frequest(FrequestDto fdto);
	
	public ArrayList<FriShowDto> fRequestList(String email);
	public ArrayList<FriShowDto> fRequestListPage(String email , int page);
	int getCountFriend(String email);
	
	
	
	int getCount(String email);
	public FrequestDto getFriendReq(FrequestDto fdto);
	public int friendAccept(FrequestDto fdto);
	public int friAcceptAfter(FrequestDto fdto);
	public ArrayList<FriendDto> friendList(String email);
	//public ArrayList<FriendDto> friendListPage(String email,int page);
	public int fReqRefuse(FrequestDto fdto);
	public int friDelete(FrequestDto fdto);
	public int friDelete2(FrequestDto fdto);
	
	//Message
	public int message(MessageDto dto);
	public ArrayList<MessageDto> sendMessagebox(MessageDto dto);
	public ArrayList<MessageDto> receiveMessagebox(MessageDto dto);
	public int deleteMessage(MessageDto dto);
	public int deleteMessage2(MessageDto dto);
	public int senddel(int mseq);
	
}
